package com.parenting.mapper;

import com.parenting.entities.CouponUsageRecordDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.parenting.request.wechat.WechatRecordRequest;
import com.parenting.response.wechat.WechatDateRecordResponse;
import com.parenting.response.wechat.WechatRecordResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 优惠券使用记录表 Mapper 接口
 * </p>
 *
 * @author 烟台业达-王世玺
 * @since 2021-08-27
 */
public interface CouponUsageRecordMapper extends BaseMapper<CouponUsageRecordDO> {

    /****
     * 列表 分类信息
     * @param wechatRecordRequest
     * @param shopId
     * @return
     */
    List<WechatDateRecordResponse> dateRecordResponse(@Param("request") WechatRecordRequest wechatRecordRequest , @Param("shopId") String shopId);


    /***
     * 分类下的参数
     * @param wechatRecordRequest
     * @param shopId
     * @return
     */
    List<WechatRecordResponse> recordResponse(@Param("request") WechatRecordRequest wechatRecordRequest , @Param("shopId") String shopId,@Param("date") String date);
}
